#include "StdAfx.h"
#include "joust2.h"
#include "defender.h"
#include "machine/joust2machine.h"

static InputPort Port1 =
	{
		{
		{"Left",			I_UP,			0x01,	I_HIGH},
		{"Right",		I_DOWN,		0x02,	I_HIGH},
		{"Button",		I_B1,			0x04,	I_HIGH},
		{"Unused",		0,				0x08,	I_HIGH},
		{"Start 2",		I_START2,	0x10,	I_HIGH},
		{"Start 1",		I_START1,	0x20,	I_HIGH},
		{"Unused",		0,				0x40,	I_HIGH},
		{"Unused",		0,				0x80,	I_HIGH},
		}
	};

static highscore_t highscore[] =
	{
//	{0xB260,0x60,0x00,0x48},
	{0,-1}
	};

Cjoust2::Cjoust2()
{
SetName("joust2");						//set romset name
SetScreen(304,256,ROTATE_270);
SetHighScoreInfo(highscore);
SetPort(0,&Port1);
SetPort(1,0);
SetPort(2,&defenderPort3);
AddROM("ic55_r1.cpu",	0x0D000,0x1000,0x08b0d5bd,ROM_CPU1);
AddROM("ic09_r2.cpu",	0x0E000,0x1000,0x951175ce,ROM_CPU1);
AddROM("ic10_r2.cpu",	0x0F000,0x1000,0xba6e0f6c,ROM_CPU1);
AddROM("ic18_r1.cpu",	0x10000,0x2000,0x9dc986f9,ROM_CPU1);
AddROM("ic16_r2.cpu",	0x12000,0x2000,0x56e2b550,ROM_CPU1);
AddROM("ic14_r2.cpu",	0x14000,0x2000,0xf3bce576,ROM_CPU1);
AddROM("ic12_r2.cpu",	0x16000,0x2000,0x5f8b4919,ROM_CPU1);
AddROM("ic26_r1.cpu",	0x20000,0x2000,0x4ef5e805,ROM_CPU1);
AddROM("ic24_r1.cpu",	0x22000,0x2000,0x4861f063,ROM_CPU1);
AddROM("ic22_r1.cpu",	0x24000,0x2000,0x421aafa8,ROM_CPU1);
AddROM("ic20_r1.cpu",	0x26000,0x2000,0x3432ff55,ROM_CPU1);
AddROM("ic17_r1.cpu",	0x30000,0x2000,0x3e01b597,ROM_CPU1);
AddROM("ic15_r1.cpu",	0x32000,0x2000,0xff26fb29,ROM_CPU1);
AddROM("ic13_r2.cpu",	0x34000,0x2000,0x5f107db5,ROM_CPU1);
AddROM("ic25_r1.cpu",	0x40000,0x2000,0x47580af5,ROM_CPU1);
AddROM("ic23_r1.cpu",	0x42000,0x2000,0x869b5942,ROM_CPU1);
AddROM("ic21_r1.cpu",	0x44000,0x2000,0x0bbd867c,ROM_CPU1);
AddROM("ic19_r1.cpu",	0x46000,0x2000,0xb9221ed1,ROM_CPU1);
AddROM("ic08_r1.cpu",	0x0E000,0x2000,0x84517c3c,ROM_CPU2);
AddROM("u04_r1.snd",		0x10000,0x8000,0x3af6b47d,ROM_CPU3);
DupROM(0x18000);
DupROM(0x20000);
DupROM(0x28000);
AddROM("u19_r1.snd",		0x30000,0x8000,0x3af6b47d,ROM_CPU3);
DupROM(0x38000);
DupROM(0x40000);
DupROM(0x48000);
AddROM("u20_r1.snd",		0x50000,0x8000,0x3af6b47d,ROM_CPU3);
DupROM(0x58000);
DupROM(0x60000);
DupROM(0x68000);
AddROM("ic57_r1.vid",	0x0000,0x4000,0x572c6b01,ROM_VROM1);
AddROM("ic58_r1.vid",	0x4000,0x4000,0xaa94bf05,ROM_VROM1);
AddROM("ic41_r1.vid",	0x8000,0x4000,0xc41e3daa,ROM_VROM1);
}

CMachine *Cjoust2::CreateMachine()
{
return(new CJoust2Machine());
}
